import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2024-04-10
 * Time: 14:54
 */
public class Test {
    public static void main(String[] args) {
        Solution solution =new Solution();
        String[] words={"foo","bar"};
        List<Integer> list=new ArrayList<>();
      list =  solution.findSubstring("barfoothefoobarman",words);
        System.out.println(list);
    }
}
